﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AutoValidateTest.aspx.cs"
    Inherits="WebForm.Web.AutoValidate.AutoValidateTest" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <AV:FormValidate runat="server" ID="formValidate1">
            <asp:TextBox runat="server" ValidationGroup="NotNull=>不能为空" ID="tbTest1" />
            <hr />
            <asp:CheckBoxList runat="server" ValidationGroup="Notnull=>checkBox不能为空">
                <asp:ListItem Text="text1" />
                <asp:ListItem Text="text2" />
            </asp:CheckBoxList>
            <hr />
            <asp:DropDownList runat="server" ValidationGroup="notnull=>dropDownlist 不能为空">
                <asp:ListItem Text="text1" />
                <asp:ListItem Text="text2" />
            </asp:DropDownList>
            <hr />
            <asp:RadioButtonList runat="server" ValidationGroup="notnull=>RadioButtonList 不能为空">
                <asp:ListItem Text="text1" />
                <asp:ListItem Text="text2" />
            </asp:RadioButtonList>
            <asp:Button Text="text" OnClick="BtnClick" runat="server" />
        </AV:FormValidate>
    </div>
    </form>
</body>
</html>
